<?php
session_start();
session_destroy();
echo '<script>alert("logout complete");location.replace("index.php");</script>';